package flash.net.drm;

extern class DRMManager extends flash.events.EventDispatcher
{
	static function getDRMManager():flash.net.drm.DRMManager;
	static var isSupported(default, null):Bool;
	function authenticate(serverURL:String, domain:String, username:String, password:String):Void;
	function setAuthenticationToken(serverUrl:String, domain:String, token:flash.utils.ByteArray):Void;
	function loadVoucher(contentData:flash.net.drm.DRMContentData, setting:String):Void;
	function loadPreviewVoucher(contentData:flash.net.drm.DRMContentData):Void;
	function storeVoucher(voucher:flash.utils.ByteArray):Void;
	function resetDRMVouchers():Void;
	function addToDeviceGroup(deviceGroup:flash.net.drm.DRMDeviceGroup, forceRefresh:Bool = false):Void;
	function removeFromDeviceGroup(deviceGroup:flash.net.drm.DRMDeviceGroup):Void;
	function new():Void;
}